//
//  MapViewController.h
//  GuideMe
//
//  Created by Amila Fonseka on 3/24/12.
//  Copyright 2012 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <MapKit/MapKit.h>
#import <MapKit/MKAnnotation.h>

@interface MapViewController : UIViewController <MKMapViewDelegate>
{
    IBOutlet MKMapView *mapView;
    
	IBOutlet UIButton *btnTransport;
	IBOutlet UIButton *btnrestaurant;
	//IBOutlet UIButton *btnLocal;
    
    IBOutlet UIButton *btnBack;
    
    NSMutableArray *arryLocationDetails;
	
	NSInteger iSelection;
    
    MKReverseGeocoder *geoCoder;
	MKPinAnnotationView *annView;
	MKPlacemark *mPlacemark;
    
    // the data representing the route points. 
	MKPolyline* _routeLine;
	
    // the view we create for the line on the map
	MKPolylineView* _routeLineView;
	
	// the rect that bounds the loaded points
	MKMapRect _routeRect;
}

@property NSInteger iSelection;

- (void)clearLocationsOfMap;
- (void)clearLocationsOfMapONLY;
- (void)loadLocationsWithLatLong;
- (void)setButtonImagesForSelection;

- (IBAction)goBack:(id)sender;
- (IBAction)showTransportLocations:(id)sender;
- (IBAction)showRestaurantLocations:(id)sender;
//- (IBAction)showLocalLocations:(id)sender;

// load the points of the route from the data source, in this case
// a CSV file. 
-(void) loadRoute;

// use the computed _routeRect to zoom in on the route. 
-(void) zoomInOnRoute;

@end
